<!DOCTYPE html>
<html>
  <head lang="en">
    <meta charset="UTF-8">
    <title>KLIPSE: a simple and elegant online cljs compiler and evaluator</title>
    <link rel='shortcut icon' type='image/x-icon' href='img/klipse.png' />
    <link rel="stylesheet" type="text/css" href="css/codemirror.css">
  </head>
  <body>
    <div class="clojure">
    (ns foo.core
    (:require [clojure.set :as ppp]))
        (def a ::ppp/koko)
        a
    </div>
    <div class="clojure">
      (def y 1)
      (+ y y)
    </div>
    <br/>
    <div class="clojure">
      `(1 2 ~(map inc [1 2 3]))
    </div>
    <br/>
    <div class="clojure">
      (ns my.m$macros)
      (defmacro m [x] x)
      (my.m/m 1)
    </div>
    <br/>
    <div class="clojure">
      `(let [x# 1] x#)
    </div>
    <br/>
    <div class="clojure">
      (ns my.ns 
      (:require [clojure.set :as ss]))
    </div>
    <div class="clojure">
      (ns my.ns
      (:refer-clojure :exclude [distinct group-by update])
      (:require clojure.string
      [sqlingvo.core :as sql :refer [sql db select from]]))


      (def my-db (db :postgresql))

      (sql (select my-db [:first-name]
      (from :people)))
    </div>
    <br/>



    <div class="clojure">
      (require-macros '[gadjett.core :refer [dbg]])
      (dbg (map inc [1 2 3]))
    </div>
    <br/>


    <div class="clojure">
      (require 'goog.dom)
      (goog.dom/setTextContent js/klipse-container "hello")
      [1 2 3]
    </div>
    <br/>
    <div class="clojure">
      `(1 2 ~(map inc [1 2 3]))
    </div>
    <br/>
    <div class="clojure">
      (ns my.m$macros)
      (defmacro m [x] x)
      (my.m/m 1)
    </div>
    <br/>
    <div class="clojure">
      `(let [x# 1] x#)
    </div>
    <br/>
    <br/>
    <br/>
    <div class="clojure">
      (ns my.test
      (:require
      [cljs.pprint :as pp :refer [pprint]]))
      (with-out-str (pprint (for [x (range 10)] (range x))))
    </div>
    <br/>
    <div class="clojure">
      `(1 2 ~(map inc [1 2 3]))
    </div>
    <br/>
    <script>
      window.klipse_settings = {
//      clojure_bundled_ns_ignore: /gadjett\..*/
      };
      if(window.location.search.match(/transpile=1/)) {
      window.klipse_settings.selector_js = '.clojure';
      } else {
      window.klipse_settings.selector = '.clojure';
      }

    </script>
    <script src="/cljs-out/dev-main.js"></script>
  </body>
</html>
